<template>
	<view>
		<view class="head-nav">
			<view :class="navIndex==1?'activite':''" @click="checkIndex(1)">最新评价</view>
			<view :class="navIndex==2?'activite':''" @click="checkIndex(2)">门店评价</view>
		</view>
		<view class="content" v-if="navIndex==1">
			<view class="user">
				<image src="../../static/left.png"></image>
				<text style="margin-left: 20rpx;font-size: 26rpx;">张三三</text>
				<text style="margin-left: 240rpx;font-size: 20rpx;color: #666;">下单时间：2021.03.14 14:20</text>
			</view>
			<view class="product-info">
				<view>
					<image src="../../static/meat.png"></image>
				</view>
				<view class="product">
					<text style="font-size: 24rpx;color: #1A1A1A;">带皮五花肉（300g）</text>
					<text style="font-size: 20rpx;color: #666;">规格:规格一</text>
				</view>
				<view class="price">
					<text>共3件</text>
					<text style="margin-left: 17rpx;">合计:14.80元</text>
				</view>
			</view>
			<view class="comment">
				<view style="font-size: 26rpx;color: #1A1A1A;">评价:</view>
				<text style="font-size: 24rpx;color: #666;" >好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好 吃好吃好吃好吃</text>
			</view>
			<view class="agree">
				<button type="button">回复</button>
			</view>
		</view>
		<!-- <view class="content" v-if="navIndex==2">
			<view class="user">
				<image src="../../static/left.png"></image>
				<text style="margin-left: 20rpx;font-size: 26rpx;">张三三</text>
				<text style="margin-left: 240rpx;font-size: 20rpx;color: #666;">下单时间：2021.03.14 14:20</text>
			</view>
			<view class="product-info">
				<view>
					<image src="../../static/meat.png"></image>
				</view>
				<view class="product">
					<text style="font-size: 24rpx;color: #1A1A1A;">带皮五花肉（300g）</text>
					<text style="font-size: 20rpx;color: #666;">规格:规格一</text>
				</view>
				<view class="price">
					<text>共3件</text>
					<text style="margin-left: 17rpx;">合计:14.80元</text>
				</view>
			</view>
			<view class="comment">
				<view style="font-size: 26rpx;color: #1A1A1A;">评价:</view>
				<text style="font-size: 24rpx;color: #666;" >好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好吃好 吃好吃好吃好吃</text>
			</view>
			<view class="agree">
				<button type="button">回复</button>
			</view>
		</view> -->
	</view>
</template>
<script>
export default {
	data(){
		return {
	      navIndex:1
		}
	},
	methods:{
	  checkIndex(index){
		  this.navIndex = index
	  }
	}
}
</script>
<style>
	.head-nav {
	  width: 490rpx;
	  height: 80rpx;
	  line-height: 80rpx;
	  margin: 0rpx 130rpx;
	  display: flex;
	  justify-content: space-between;
	  font-size: 30rpx;
	}
	.activite {
	  font-weight: bold;
	  border-bottom: 6rpx solid #FEB140;
	}
	.content {
	  width: 690rpx;
	  height: 446rpx;
	  background: #FFFFFF;
	  /* border-radius: 10rpx; */
	  margin: 30rpx 30rpx 20rpx;
	 /* border: 2rpx solid #ddd; */
	  display: flex;
	  flex-direction: column;
	}
	.user {
		display: flex;
		flex-direction: row;
		margin: 20rpx;
	}
	.user image {
	  width: 40rpx;
	  height: 40rpx;
	}
	.product-info {
		display: flex;
		flex-direction: row;
		margin: 10rpx 20rpx 10rpx;
	}
	.product-info image {
		width: 80rpx;
		height: 80rpx;
	}
	.product {
		display: flex;
		flex-direction: column;
		margin-left: 20rpx;
		justify-content: flex-start;
	}
	.price {
		font-size: 20rpx;
		color: #1A1A1A;
		margin-left: 133rpx;
		margin-top: 64rpx;
	}
    .comment {
		margin: 10rpx 31rpx 21px 20rpx;
	}
	.agree button{
		width: 140rpx;
		height: 40rpx;
		line-height: 40rpx;
		background: #FEB140;
		border-radius: 20rpx;
		font-size: 24rpx;
		margin-left: 525rpx;
	}
</style>
